package social.p2pnative.model;

/**
 *
 * @author cadmilo
 */
public class AdvertisementField {

    private String name;
    private boolean indexed = false;

    public AdvertisementField(String name, boolean indexed) {
        this.name = name;
        this.indexed = indexed;
    }

    public AdvertisementField(String name) {
        this.name = name;
    }

    public boolean isIndexed() {
        return indexed;
    }

    public void setIndexed(boolean indexed) {
        this.indexed = indexed;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGetMethod() {
        return "get" + (name.charAt(0) + "").toUpperCase() + name.substring(1, name.length());

    }
    
    public String getSetMethod() {
        return "set" + (name.charAt(0) + "").toUpperCase() + name.substring(1, name.length());
    }
}
